/** When your routing table is too long, you can split it into small modules**/

const Layout = () => import('@/layout/index.vue');

const financeRouter = {
  path: '/finance',
  component: Layout,
  name: 'finance',
  meta: {
    title: '財務管理',
    icon: 'chart'
  },
  children: [
    {
      path: 'withdraw',
      component: () => import('@/views/finance/withdraw.vue'),
      name: 'withdraw',
      meta: { title: '提現管理', noCache: true }
    },
    {
      path: 'consumeRecord',
      component: () => import('@/views/finance/consume.vue'),
      name: 'consumeRecord',
      meta: { title: '消費記錄', noCache: true }
    },
    {
      path: 'income',
      component: () => import('@/views/finance/income.vue'),
      name: 'income',
      meta: { title: '收入記錄', noCache: true }
    },
    {
      path: 'rechargeRecord',
      component: () => import('@/views/finance/recharge.vue'),
      name: 'rechargeRecord',
      meta: { title: '充值記錄', noCache: true }
    },
    {
      path: 'rechargeRule',
      component: () => import('@/views/finance/rechargeRule.vue'),
      name: 'rechargeRule',
      meta: { title: '充值規則', noCache: true }
    },
    {
      path: 'balance',
      component: () => import('@/views/finance/balance.vue'),
      name: 'balance',
      meta: { title: '後臺充值餘額記錄', noCache: true }
    },
    {
      path: 'cashRecord',
      component: () => import('@/views/finance/cashRecord.vue'),
      name: 'cashRecord',
      meta: { title: '提款記錄', noCache: true }
    },
    {
      path: 'editPage',
      component: () => import('@/views/finance/editPage.vue'),
      name: 'editPage',
      meta: { title: '' }
    },


  ]
};

export default financeRouter;
